<%@ Control Language="C#" AutoEventWireup="true" Codebehind="PlayerWeaponStats.ascx.cs"
    Inherits="ASP_TF2LogParser.UserControls.PlayerWeaponStats" %>
<div id="WeaponStatsDivId">
    <div id="WeaponStatsHeaderDivId">
        Weapon Stats</div>
    <div id="WeaponStatsDataDivId">
        <asp:GridView ID="playerWeaponStatsGridView" runat="server" AllowSorting="True" AutoGenerateColumns="False" DataSourceID="ObjectDataSource1" >
            <Columns>
                    <asp:TemplateField HeaderText="Weapon" SortExpression="Weapon">
            <ItemTemplate>
                <asp:Label runat="server" Text='<%# GenerateUrl( Eval("Weapon").ToString(), Eval("WeaponId").ToString() ) %>'
                    ID="WeaponLabel"></asp:Label>
            </ItemTemplate>
        </asp:TemplateField>
                <asp:BoundField DataField="Kills" HeaderText="Kills" ReadOnly="True" SortExpression="Kills" />
                <asp:BoundField DataField="Deaths" HeaderText="Deaths" ReadOnly="True" SortExpression="Deaths" />
                <asp:BoundField DataField="KillDeathRatio" HeaderText="K:D" SortExpression="KillDeathRatio" />
            </Columns>
        </asp:GridView>
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetPlayerWeaponStats"
            TypeName="LogParser.DA.PlayerModel">
            <SelectParameters>
                <asp:QueryStringParameter Name="playerId" QueryStringField="playerId" Type="String" />
            </SelectParameters>
        </asp:ObjectDataSource>
    </div>
</div>
